package cn.com.cabinet.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.cabinet.web.entity.CabinetApplication;

public interface CabinetApplicationDao extends JpaRepository<CabinetApplication, Long>,JpaSpecificationExecutor<CabinetApplication>{

	@Query("select c from CabinetApplication c where c.cId=?1 and c.sellerId=?2 and (c.applicationMark=1 or c.applicationMark=0)")
	public CabinetApplication getCabinetApplicationByCidAndSid(String cId,Long sellerId);
}
